import api from '../index'

export default {
  // 登录
  login: (data: {
    username: string
    password: string
  }) => api.post('login/index', data),

  // 刷新token
  refresh: () => api.post('login/refresh'),

  // 获取权限
  permission: () => api.post('member/permission'),

  // 修改密码
  passwordEdit: (data: {
    password: string
    newpassword: string
  }) => api.post('user/password/edit', data),
}
